<body>
<script>
window.onpopstate = function() {
    parent.addChild();
};

window.onload = function() {
    setTimeout(function() {
        history.pushState("Test", "", "#test");
        parent.sameDocumentSetupDone();
    }, 0);
}
</script>
</body>
